(function(TYPES,typeId){
    function my_v(){
        var that = this;
        this.run=function(arr1,arr2){
            var output = 0;
            var my_a = [];
            for (var my_b in arr1) {
                my_a.push(my_b);
            };
            var my_c = my_a.length;
            (function my_d(my_e){
                if (my_e < my_c) {
                    var my_f = my_a[my_e];
var a1 = arr1[my_f];
var my_g = [];
for (var my_h in arr2) {
                        my_g.push(my_h);
                    };
var my_i = my_g.length;
(function my_j(my_k){
                        if (my_k < my_i) {
                            var my_l = my_g[my_k];
var a2 = arr2[my_l];
var my_m = ME.run([a1, a2]);
my_m.onComplete=function(result){
                                var arr3 = result;
                                var my_n = [];
                                for (var my_o in arr3) {
                                    my_n.push(my_o);
                                };
                                var my_p = my_n.length;
                                (function my_q(my_r){
                                    if (my_r < my_p) {
                                        var my_s = my_n[my_r];
var a3 = arr3[my_s];
var my_t = a1;
var my_u = 0;
if (my_t == my_u) {
                                            output+=a3;
                                        } else {
                                            output+=a3;
                                        };
my_q(my_r+1);
                                    } else {
                                        output+=0;
my_j(my_k+1);
                                    };
                                })(0);
                            }
                        } else {
                            var b = a1;
my_d(my_e+1);
                        };
                    })(0);
                } else {
                    that.onComplete(output);
                };
            })(0);
        }
        this.onComplete=function(result){
            return result;
        }
    }    TYPES.registerType(typeId,my_v);
})(RULES,"test4-1");
